package cn.com.git.oauth.server.ctrler;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;
import java.util.Map;

/**
 * @author zhangzhenfu
 * @Description
 * @date 2020/4/21 18:18
 */
@RestController
@RequestMapping("/user")
public class UserCtrler {

    @GetMapping("/info")
    public Principal userInfo(Map map, Principal principal, Authentication authentication){
        //用户信息的返回，还需要封装
        return principal;
    }

}
